<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    template="layout/template.xhtml"
    xmlns:a="http://richfaces.org/a4j">

<ui:define name="body">

    <h:form id="loginForm">
     <div style="position:absolute;left:400px;top:400px;">
        <rich:panel  headerClass="panelHeader" styleClass="panelEdge"  >
           
            
            <f:facet name="header"><div class="panelText">Login</div></f:facet>     
            
                <h:panelGrid columns="2" id="inputValueId">
                    <h:outputLabel for="username" styleClass="label">Username</h:outputLabel>
                    <h:inputText id="username" styleClass="freeText"
                              value="#{credentials.username}"/>
                    <h:outputLabel for="password" styleClass="label">Password</h:outputLabel>
                    <h:inputSecret id="password" styleClass="freeText"
                                value="#{credentials.password}"/>
                    <h:outputLabel for="rememberMe" styleClass="label">Remember me</h:outputLabel>
                    <h:selectBooleanCheckbox id="rememberMe"
                                          value="#{rememberMe.enabled}"/>
                </h:panelGrid>
           

            

        </rich:panel>

	        <div class="button">
	            <h:commandButton id="submit" value="Login"  action="#{identity.login}" />
	       </div>
      </div>
    </h:form>

 </ui:define>
</ui:composition>
